package kr.hkit.powerjava.chapter9.work;

public class Dog {
	private String name;
	private String breed;
	private int age;

	Dog(String name, int age) {
		this.name = name;
		this.age = age;
	}

	
		public Dog(String name, String breed, int age) {
			this.name = name;
			this.breed = breed;
			this.age = age;
	}

	

	

	
	@Override
		public String toString() {
			return String.format("Dog [name=%s, breed=%s, age=%s]", name,
					breed, age);
		}


	public static void main(String[] args) {

		Dog d = new Dog(null,null,0);
		System.out.println(d.toString());
		Dog d2 = new Dog(null,0);
		System.out.println(d2);
		d2.name="이랑";
		d2.age = 12;
		System.out.println(d2);
				
	}
}